<%--
  Created by IntelliJ IDEA.
  User: 磊布斯
  Date: 2021/9/15
  Time: 20:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head> <script type="text/javascript">
    var i=5;  //全局变量
    function goback(){
        var span=document.getElementById("second");
        span.innerHTML=i;
        if(i==0){
            window.location.href="/page/NewsManagement.jsp";
        }
        i--;
    }
    //每隔多长时间调用一次函数
    setInterval("goback()",1000);
</script>
</head>
<body>
<h1>操作失败</h1>
<p><span id="second">5</span>秒钟之后页面跳转.....</p>
<a href="/page/NewsManagement.jsp">点击返回</a>
</body>
</html>
